<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="author" content="江湖百晓生">
    
    
    
    
    

  
  
<link rel="stylesheet" href="/css/style.css">

    
    <title>Samba | 魔</title>
    <link href="https://acgboy.gitee.io" rel="prefetch" />

    
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/aos.css">
<link rel="stylesheet" href="/css/style.css">

    
<script src="/js/jquery.min.js"></script>

    
<script src="/js/bootstrap.min.js"></script>

    
<script src="/js/aos.js"></script>

    
<script src="/js/highslide/highslide-full.min.js"></script>

    
<link rel="stylesheet" href="/js/highslide/highslide.css">

    <style type="text/css">
        @media (max-width: 768px) {
            body {
                background-color: #f0f0f0;
                background: url('/imgs/xsbg.gif');
                background-attachment: fixed;
            }
        }
    </style>

    
    <!--<script type="text/javascript">
      if (document.images) {
        var avatar = new Image();
        avatar.src = '/imgs/avatar.jpg'
        var previews = 'preview1.jpg,preview2.jpg,preview3.jpg,preview4.jpg'.split(',')
        var previewsPreLoad = []
        for(var i = 0; i < length; i++) {
          previewsPreLoad.push(new Image())
          previewsPreLoad[previewsPreLoad.length - 1].src = '/imgs/preview' + previews[i]
        }
      }

    </script>-->
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
    <!-- 背景轮播图功能 -->
    <section class="hidden-xs">
    <ul class="cb-slideshow">
        <li><span>天若</span></li>
        <li><span>有情</span></li>
        <li><span>天亦老</span></li>
        <li><span>我为</span></li>
        <li><span>长者</span></li>
        <li><span>续一秒</span></li>
    </ul>
</section>
    <!-- 欧尼酱功能, 谁用谁知道 -->
    
    <div class="gal-menu gal-dropdown">
    <div class="circle" id="gal">
        <div class="ring">
            <a href="https://acgboy.gitee.io" class="menuItem" style="left: 50%; top: 15%;">首页</a>
            
            <a class="menuItem" style="left: 80.3109%; top: 32.5%;">下一页</a>
            
            <a href="/archives" class="menuItem" style="left: 80.3109%; top: 67.5%;">归档</a>
            <a href="/about" class="menuItem" style="left: 50%; top: 85%;">关于</a>
            <a href="/message" class="menuItem" style="left: 19.6891%; top: 67.5%;">留言板</a>

            
            <a class="menuItem" style="left: 19.6891%; top: 32.5%;">上一页</a>
            
        </div>
        <audio id="audio" src="/imgs/oni.mp3"></audio>
    </div>
</div>
    
    <header class="navbar navbar-inverse" id="gal-header">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed"
                    data-toggle="collapse" data-target=".bs-navbar-collapse"
                    aria-expanded="false">

                <span class="fa fa-lg fa-reorder"></span>
            </button>

            <a href="https://acgboy.gitee.io">

                
                <style>
                    #gal-header .navbar-brand {
                        height: 54px;
                        line-height: 24px;
                        font-size: 28px;
                        opacity: 1;
                        background-color: rgba(0,0,0,0);
                        text-shadow: 0 0 5px #fff,0 0 10px #fff,0 0 15px #fff,0 0 20px #228DFF,0 0 35px #228DFF,0 0 40px #228DFF,0 0 50px #228DFF,0 0 75px #228DFF;
                    }
                </style>
                <!-- 这里使用文字(navbar_text or config.title) -->
                <div class="navbar-brand">魔</div>
                
            </a>
        </div>
        <div class="collapse navbar-collapse bs-navbar-collapse">
            <ul class="nav navbar-nav" id="menu-gal">
                
                
                <li class="">
                    <a href="/">
                        <i class="fa fa-home"></i>首页
                    </a>
                </li>
                
                
                
                <li class="">
                    <a href="/archives">
                        <i class="fa fa-archive"></i>归档
                    </a>
                </li>
                
                
                
                
                <li class="dropdown">
                    <!-- TODO 添加hover dropdown效果 -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false" data-hover="dropdown">
                        <i class="fa fa-list"></i>分类
                    </a>
                    <ul class="dropdown-menu">
                        
                        
                        <li>
                            <a href="/categories/Pi/">Pi</a>
                        </li>
                        
                        <li>
                            <a href="/categories/%E8%AE%A1%E7%AE%97%E6%9C%BA/">计算机</a>
                        </li>
                        
                        <li>
                            <a href="/categories/%E6%A0%91%E8%8E%93%E6%B4%BE/">树莓派</a>
                        </li>
                        
                        
                        <li>
                            <a href="/categories">...</a>
                        </li>
                        
                        
                    </ul>
                </li>
                
                
                
                
                
                <li class="dropdown">
                    <!-- TODO 添加hover dropdown效果 -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false" data-hover="dropdown">
                        <i class="fa fa-tags"></i>标签
                    </a>
                    <ul class="dropdown-menu">
                        
                        
                        <li>
                            <a href="/tags/%E6%A0%91%E8%8E%93%E6%B4%BE/">树莓派</a>
                        </li>
                        
                        <li>
                            <a href="/tags/Python/">Python</a>
                        </li>
                        
                        <li>
                            <a href="/tags/Hexo/">Hexo</a>
                        </li>
                        
                        
                        <li>
                            <a href="/tags">...</a>
                        </li>
                        
                        
                    </ul>
                </li>
                
                
                
            </ul>
        </div>
    </div>
</header>
    <div id="gal-body">
        <div class="container">
            <div class="row">
                <div class="col-md-8 gal-right" id="mainstay">
                    
<article class="article well article-body" id="article">
    <div class="breadcrumb">
        <i class="fa fa-home"></i>
        <a href="https://acgboy.gitee.io">魔</a>
        >
        <span>Samba</span>
    </div>
    <!-- 大型设备详细文章 -->
    <div class="hidden-xs">
        <div class="title-article">
            <h1>
                <a href="/2021/05/24/2021-5-24-samba/">Samba</a>
            </h1>
        </div>
        <div class="tag-article">
            
            <span class="label label-gal">
                <i class="fa fa-tags"></i>
                
                <a href="/tags/samba/">samba</a>
                
            </span>
            
            <span class="label label-gal">
                <i class="fa fa-calendar"></i> 2021-05-24
            </span>
            
        </div>
    </div>
    <!-- 小型设备详细文章 -->
    <div class="visible-xs">
        <center>
            <div class="title-article">
                <h4>
                    <a href="/2021/05/24/2021-5-24-samba/">Samba</a>
                </h4>
            </div>
            <p>
                <i class="fa fa-calendar"></i> 2021-05-24
            </p>
            <p>
                
                <i class="fa fa-tags"></i>
                
                <a href="/tags/samba/">samba</a>
                
                
                
            </p>
        </center>
    </div>
    <div class="content-article">
        <h2 id="一、获取源代码包并进行解压"><a href="#一、获取源代码包并进行解压" class="headerlink" title="一、获取源代码包并进行解压"></a>一、获取源代码包并进行解压</h2><p>从samba的<a target="_blank" rel="noopener" href="http://www.samba.org/samba/">官方网站</a>可以下载最新的samba源代码包。下面我们以samba-3.5.9.tar.gz的源代码包作为案例进行解析。本例中，我们将源代码包放在目录/home/samba下，然后执行下面的命令进行解压缩。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># tar –xzvf samba-3.5.9.tar.gz </span><br></pre></td></tr></table></figure>

<h2 id="二、配置configure"><a href="#二、配置configure" class="headerlink" title="二、配置configure"></a>二、配置configure</h2><p>对源代码包进行解压缩后，进入目录</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># cd /home/samba/samba-3.5.9/source3</span><br></pre></td></tr></table></figure>

<p>然后执行下面的命令进行配置。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># ./configure</span><br></pre></td></tr></table></figure>

<p>可能在刚开始时，该目录下没有configure文件，此时可先执行下面的命令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># ./autogen-sh</span><br></pre></td></tr></table></figure>

<p>此时要求系统安装了autoconf、automake等工具。</p>
<p>在运行上面的配置命令之前，我们可以通过命令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># ./configure –-help</span><br></pre></td></tr></table></figure>

<p>来查看配置命令的一些选项。</p>
<h2 id="三、生成与安装make-amp-amp-make-install"><a href="#三、生成与安装make-amp-amp-make-install" class="headerlink" title="三、生成与安装make &amp;&amp; make install"></a>三、生成与安装make &amp;&amp; make install</h2><p>在环境配置命令./configure成功执行后，可以运行命令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># make</span><br></pre></td></tr></table></figure>

<p>来生成二进制可执行文件，这可能需要两到三分钟。成功生成可执行文件后，可以通过下面命令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">#make install</span><br></pre></td></tr></table></figure>

<p>来进行安装。系统默认的安装路径是/usr/local/samba</p>
<h2 id="四、配置动态链接库路径"><a href="#四、配置动态链接库路径" class="headerlink" title="四、配置动态链接库路径"></a>四、配置动态链接库路径</h2><p>安装完成后，我们需要配置动态链接库路径，因为运行samba的进行smbd和nmbd需要到目录/usr/local/samba/lib下的动态链接库文件。但是该目录不是系统默认的动态链接库文件搜索路径，于是我们需要将该目录添加到文件ld.so.conf中。执行下面的命令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># vi /etc/ld.so.conf</span><br></pre></td></tr></table></figure>

<p>打开ld.so.conf文件，并在该文件中加入下面这一行内容。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">/usr/local/samba/lib</span><br></pre></td></tr></table></figure>

<p>然后执行命令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># ldconfig</span><br></pre></td></tr></table></figure>

<p>来更新动态链接库缓冲。</p>
<h2 id="五、samba配置文件smb-conf"><a href="#五、samba配置文件smb-conf" class="headerlink" title="五、samba配置文件smb.conf"></a>五、samba配置文件smb.conf</h2><p>samba在运行过程中需要用到配置文件smb.conf。smb.conf配置文件是samba最重要的配置文件，该文件定义了samba的安全机制、文件共享和打印共享的目录和参数以及其他一些系统配置功能。</p>
<p>配置文件smb.conf的默认路径是/usr/local/samba/lib/smb.conf，我们可以在运行smbd进程时，通过-s选项来执行特定的smb.conf文件（具体说明见下一节），一般不推荐使用-s选项，因为其配置工具，如smbclient、testparm等默认都是读取/usr/local/samba/lib/smb.conf文件。下面我们以一个简单的配置文件进行说明，其路径为/etc/samba/smb.conf。</p>
<p><a href="javascript:void(0);"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码"></a></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">[global]</span><br><span class="line">         workgroup = MYGROUP</span><br><span class="line">         server string = Samba Server %v</span><br><span class="line">         security = user</span><br><span class="line">         log file = /var/log/samba/%m.log</span><br><span class="line">         passdb backend = smbpasswd</span><br><span class="line">         smb passwd file = /etc/samba/smbpasswd</span><br><span class="line">[root]</span><br><span class="line">         path = /</span><br><span class="line">         valid users = root</span><br><span class="line">         writeable = yes</span><br><span class="line">[public]</span><br><span class="line">         path = /data</span><br><span class="line">         guest ok = yes</span><br><span class="line">         read only = yes</span><br></pre></td></tr></table></figure>

<p><a href="javascript:void(0);"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码"></a></p>
<p>上面配置文件定义了root和public两个文件共享服务。关于上面这个配置文件的具体细节，我们这里不做详细的论述。这里主要说明的一点：在samba 3.0.23版本以前验证用户密码的默认backend是smbpasswd，而3.0.23版本之后的默认backend是tdbsam。我们可以通过参数passdb backend来选择特定的backend。在使用smbpasswd时默认读取的密码文件时/usr/local/samba/private/smbpasswd，我们可以通过smb passwd file来指定特定的密码文件。</p>
<p>在配置完smb.conf文件后，我们可以运行testparm（目录/usr/local/samba/lib下）命令来对smb.conf文件进行语法检查，其会检测出哪些参数名无法识别等问题。</p>
<h2 id="六、启动samba"><a href="#六、启动samba" class="headerlink" title="六、启动samba"></a>六、启动samba</h2><p>samba有两个主要的进程smbd和nmbd。smbd进程提供了文件和打印服务，而nmbd则提供了NetBIOS名称服务和浏览支持，帮助SMB客户定位服务器，处理所有基于UDP的协议。</p>
<p>配置smb.conf文件后，在开始运行samba的服务进程之前。我们需要先做一些准备工作。运行smbpasswd命令（在目录/usr/local/samba/bin下）</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># ./smbpasswd –a root</span><br></pre></td></tr></table></figure>

<p>向smb.conf文件中指定的/etc/samba/smbpasswd文件中添加root用户以及密码信息。关于smbpasswd文件的详细内容介绍见相关文档。</p>
<p>然后运行命令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># service iptables stop</span><br></pre></td></tr></table></figure>

<p>关闭防火墙，因为防火墙可能会阻止用户访问该机器。下面是运行samba的服务进程smbd和nmbd</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># /usr/local/samba/sbin/smbd –D –s /etc/samba/smb.conf</span><br><span class="line"># /usr/local/samba/sbin/nmbd –D –s /etc/samba/smb.conf</span><br></pre></td></tr></table></figure>

<p>上面的-D选项指定smbd和nmbd以守护进程的方式启动，并且通过-s选项指定了特定的配置文件/etc/samba/smb.conf。以守护进程方式启动smbd和nmbd的优势是响应速度快，但是要关闭的话只能kill掉。当然我们可以通过脚本来执行这些操作，这里就不提供脚本了。</p>
<h2 id="七、smbclient进行测试检查"><a href="#七、smbclient进行测试检查" class="headerlink" title="七、smbclient进行测试检查"></a>七、smbclient进行测试检查</h2><p>在启动samba之后，我们可以在本机使用smbclient（目录/usr/local/samba/bin下）来进行测试。下面命令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># cd /usr/local/samba/bin</span><br><span class="line"># ./smbclient –L //127.0.0.1</span><br></pre></td></tr></table></figure>

<p>可以列出本samba服务器所提供的服务列表，本例运行结果如下：</p>
<p><a href="javascript:void(0);"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码"></a></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line">[root@localhost bin]# ./smbclient –L //127.0.0.1</span><br><span class="line">Enter root’s password:</span><br><span class="line">Domain=[MYGROUP]  OS=[Unix] Server=[Samba 3.5.9]</span><br><span class="line"></span><br><span class="line">         Sharename                Type                  Comment</span><br><span class="line">         ---------                -------               -------</span><br><span class="line">         IPC$                     IPC                   IPC Service (Samba Server 3.5.9)</span><br><span class="line">         public                   Disk                  </span><br><span class="line">         root                     Disk</span><br><span class="line"></span><br><span class="line">Domain=[MYGROUP]  OS=[Unix] Server=[Samba 3.5.9]     </span><br><span class="line"></span><br><span class="line">         Server                             Comment</span><br><span class="line">         -----------                        -------</span><br><span class="line">         LOCALHOST                          Samba Server 3.5.9</span><br><span class="line">        </span><br><span class="line">         Workgroup                          Master</span><br><span class="line">         ------------                       -------</span><br><span class="line">         MYGROUP                            LOCALHOST</span><br></pre></td></tr></table></figure>

<p><a href="javascript:void(0);"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码"></a></p>
<p>当然也可以通过smbclient来访问samba服务器提供的服务，其命令格式如下：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># ./smbclient “//serverAdderss/aservice” –U username</span><br></pre></td></tr></table></figure>

<p>其中serverAddress是要访问的samba服务器的IP地址，aservice指定samba服务器上提供的某个服务名称，选项-U username指定要以哪个用户名来访问samba服务器。例如</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">[root@localhost bin]# ./smbclient “//127.0.0.1/root” –U root</span><br><span class="line">Enter root’s password:                                       ; 这里输入samba用户root的密码</span><br><span class="line">Domain=[MYGROUP]  OS=[Unix] Server=[Samba 3.5.9]</span><br><span class="line">smb: \&gt;                                                      ; 访问成功，输入相关命令进行操作</span><br></pre></td></tr></table></figure>

<p>上面个smb: &gt;表明了访问成功，此时我们可以输入一些命令来在samba服务器上进行操作，比如ls、mkdir等。q或quit命令执行退出，并断开连接。</p>
<h2 id="八、在Windows客户端访问samba服务器"><a href="#八、在Windows客户端访问samba服务器" class="headerlink" title="八、在Windows客户端访问samba服务器"></a>八、在Windows客户端访问samba服务器</h2><p>在Windows客户端，可以在网上邻居中通过新建网上邻居来访问，或者在【开始】——【运行】中输入\192.168.1.34\root来访问samba服务器192.168.1.34上面提供的root服务。</p>

    </div>
</article>


                </div>
                <aside class="col-md-4 gal-left" id="sidebar">
    <!-- 此为sidebar的搜索框, 非搜索结果页面 -->
<aside id="sidebar-search">
    <div class="search hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <form class="form-inline clearfix" id="search-form" method="get"
              action="/search/index.html">
            <input type="text" name="s" class="form-control" id="searchInput" placeholder="搜索文章~" autocomplete="off">
            <button class="btn btn-danger btn-gal" type="submit">
                <i class="fa fa-search"></i>
            </button>
        </form>
    </div>
</aside>
    <aside id="sidebar-author">
    <div class="panel panel-gal" data-aos="flip-right" data-aos-duration="3000">
        <div class="panel-heading" style="text-align: center">
            <i class="fa fa-quote-left"></i>
            江湖百晓生
            <i class="fa fa-quote-right"></i>
        </div>
        <div class="author-panel text-center">
            <img src="/imgs/avatar.jpg" width="140" height="140"
                 alt="个人头像" class="author-image">
            <p class="author-description"></p>
        </div>
    </div>
</aside>
    
    <!-- 要配置好leancloud才能开启此小工具 -->
    
    
    <aside id="sidebar-recent_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            近期文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/06/06/2021-6-6-Python%E7%BA%A2%E5%A4%96/">Python红外</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/05/24/2021-5-24-samba/">Samba</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/04/13/2020-04-13-transmission/">transmission</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/01/28/zero/">萌新:起点</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="sidebar-rand_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            随机文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/01/28/zero/">萌新:起点</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/04/13/2020-04-13-transmission/">transmission</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/05/24/2021-5-24-samba/">Samba</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/06/06/2021-6-6-Python%E7%BA%A2%E5%A4%96/">Python红外</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="gal-sets">
        <div class="panel panel-gal hidden-xs" data-aos="fade-up" data-aos-duration="2000">
            <ul class="nav nav-pills pills-gal">

                
                <li>
                    <a href="/2021/05/24/2021-5-24-samba/index.html#sidebar-tags" data-toggle="tab" id="tags-tab">热门标签</a>
                </li>
                
                
                
                <li>
                    <a href="/2021/05/24/2021-5-24-samba/index.html#sidebar-links" data-toggle="tab" id="links-tab">个人链接</a>
                </li>
                
            </ul>
            <div class="tab-content">
                
                <div class="cloud-tags tab-pane nav bs-sidenav fade" id="sidebar-tags">
    
    <a href="/tags/%E6%A0%91%E8%8E%93%E6%B4%BE/" style="font-size: 17.61716925790515px;" class="tag-cloud-link">树莓派</a>
    
    <a href="/tags/Python/" style="font-size: 12.324187321208637px;" class="tag-cloud-link">Python</a>
    
    <a href="/tags/Hexo/" style="font-size: 10.81888247961992px;" class="tag-cloud-link">Hexo</a>
    
    <a href="/tags/samba/" style="font-size: 19.34295115937008px;" class="tag-cloud-link">samba</a>
    
    <a href="/tags/%E7%BA%A2%E5%A4%96%E9%81%A5%E6%8E%A7/" style="font-size: 17.47026781635935px;" class="tag-cloud-link">红外遥控</a>
    
</div>
                
                
                
                <div class="links tab-pane nav bs-sidenav fade" id="sidebar-links">
    
    <li>
        <a href="https://gitee.com/acgboy/" target="_blank">Gitee</a>
    </li>
    
</div>
                
            </div>
        </div>
    </aside>
    
</aside>
            </div>
        </div>
    </div>
    <footer id="gal-footer">
    <div class="container">

        Copyright © 2021 江湖百晓生 博主 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=Z_MCVLNkEIlImmZ9qXcaNjYAHui8987t&noverify=0
" target="_blank">QQ</a>
.&nbsp;Hi <a href="https://jq.qq.com/?_wv=1027&k=04wUpnRb" target="_blank">QQ群</a>
    </div>
</footer>

<!-- 回到顶端 -->
<div id="gal-gotop">
    <i class="fa fa-angle-up"></i>
</div>
</body>

<script src="/js/activate-power-mode.js"></script>

<script>

    // 配置highslide
	hs.graphicsDir = '/js/highslide/graphics/'
    hs.outlineType = "rounded-white";
    hs.dimmingOpacity = 0.8;
    hs.outlineWhileAnimating = true;
    hs.showCredits = false;
    hs.captionEval = "this.thumb.alt";
    hs.numberPosition = "caption";
    hs.align = "center";
    hs.transitions = ["expand", "crossfade"];
    hs.lang.number = '共%2张图, 当前是第%1张';
    hs.addSlideshow({
      interval: 5000,
      repeat: true,
      useControls: true,
      fixedControls: "fit",
      overlayOptions: {
        opacity: 0.75,
        position: "bottom center",
        hideOnMouseOut: true
      }
    })

    // 初始化aos
    AOS.init({
      duration: 1000,
      delay: 0,
      easing: 'ease-out-back'
    });

</script>
<script>
	POWERMODE.colorful = 'true';    // make power mode colorful
	POWERMODE.shake = 'true';       // turn off shake
	// TODO 这里根据具体情况修改
	document.body.addEventListener('input', POWERMODE);
</script>
<script>
    window.slideConfig = {
      prefix: '/imgs/slide/background',
      ext: 'jpg',
      maxCount: '6'
    }
</script>

<script src="/js/hs.js"></script>
<script src="/js/blog.js"></script>



<script src="/js/oni.js"></script>




</html>